package com.tistory.risk.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tistory.admin.adminmgr.auth.model.LoginUserInfo;
import com.tistory.common.vo.CommonReq;
import com.tistory.login.vo.MemberRes;
import com.tistory.risk.dao.RiskDao;

@Service("RiskServiceImpl")
public class RiskServiceImpl implements RiskService {
	
	@Autowired
	RiskDao riskDao;

	
	
	/**
	 * @param riskDao the riskDao to set
	 */
	public void setRiskDao(RiskDao riskDao) {
		this.riskDao = riskDao;
	}


	@Override
	public LoginUserInfo getUser(Map<String,Object> map) throws SQLException {
		
		return riskDao.getUser(map);
	}


	@Override
	public List<MemberRes> getMemberList(CommonReq req) throws SQLException {
		List<MemberRes> memberList = riskDao.getMemberList(req);
		return memberList;
	}


	@Override
	public Integer getMemberListCount(CommonReq req) throws SQLException {
		return  riskDao.getMemberListCount(req);
	}
	

}
